
PANIC_MODE = 0.

def hunt_choices(round_number, current_food, current_reputation,
	m, player_reputations):
    p = len(player_reputations)
    food1 = 300 * (p - 1)
    hunt_decisions = [0 for x in range(p)]
    if current_food < food1 * PANIC_MODE:
        #play the most conservative strategy
        for ply in player_reputations:
            hunt_decisions.append('s')
        print hunt_decisions
        print player_reputations
        return hunt_decisions
    if m <= p:
        for i in range(m):
            hunt_decisions[i] = 'h' #ensure the bonus!
    #main logic:
    i = 0
    for rep in player_reputations:
        if not hunt_decisions[i]:
            if rep == 1.00 and round_number > p/2:
                hunt_decisions[i] = 's'
            elif current_reputation <= 0.7:
                hunt_decisions[i] = 'h'
            elif current_reputation - rep > 0.3:
                hunt_decisions[i] = 's'
            else:
                hunt_decisions[i] = 'h'
        i += 1
    print hunt_decisions
    hunt_decisions = hunt_decisions
    return hunt_decisions

def hunt_outcomes(food_earnings):
    pass

def round_end(award, m, number_hunters):
    pass
